package cn.lili.controller.feign.union;

import cn.lili.modules.member.client.UnionLogClient;
import cn.lili.modules.member.entity.dos.UnionLog;
import cn.lili.modules.union.service.UnionLogService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequiredArgsConstructor
public class UnionLogFeignController implements UnionLogClient {

    private final UnionLogService unionLogService;

    @Override
    public Boolean addUnionLog(UnionLog unionLog) {
        return unionLogService.addUnionLog(unionLog);
    }

    @Override
    public void batchAddUnionLog(List<UnionLog> unionLogList) {
        unionLogService.batchAddUnionLog(unionLogList);
    }
}
